<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="..\..\..\MonoDevelop.props" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{7F5B649A-3572-4713-83FD-C28A6AA70445}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <RootNamespace>MonoDevelop.Projects.MSBuild</RootNamespace>
    <TargetFrameworkVersion>$(MDFrameworkVersion)</TargetFrameworkVersion>
    <OutputPath>..\..\..\build\bin</OutputPath>
    <StartupObject>MonoDevelop.Projects.MSBuild.MainClass</StartupObject>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>x64</PlatformTarget>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin32|x86' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>x64</PlatformTarget>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWin32|x86' " />
  <!-- TODO: Linux -->
  <PropertyGroup>
    <MSBuild_OSS_BinDir Condition="'$(OS)' == 'Windows_NT'">$(MSBuildToolsPath)\</MSBuild_OSS_BinDir>
    <!-- when building with xbuild on Unix, $(MSBuildToolsPath) is like `$prefix/lib/mono/xbuild/*/bin`
	 when building with msbuild on Unix, $(MSBuildToolsPath) is like `$prefix/lib/mono/msbuild/*/bin`
	 Prefer referencing msbuild 15.* assemblies over 14.1 . At runtime, we use correct one anyway
	 -->
    <MSBuild_OSS_BinDir Condition="'$(OS)' == 'Unix' and '$(MSBuild_OSS_BinDir)' == '' and Exists('$(MSBuildToolsPath)\..\..\..\msbuild\Current\bin\MSBuild.dll')">$(MSBuildToolsPath)\..\..\..\msbuild\Current\bin\</MSBuild_OSS_BinDir>
    <MSBuild_OSS_BinDir Condition="'$(OS)' == 'Unix' and '$(MSBuild_OSS_BinDir)' == '' and Exists('$(MSBuildToolsPath)\..\..\..\msbuild\15.0\bin\MSBuild.exe')">$(MSBuildToolsPath)\..\..\..\msbuild\15.0\bin\</MSBuild_OSS_BinDir>
    <MSBuild_OSS_BinDir Condition="'$(OS)' == 'Unix' and '$(MSBuild_OSS_BinDir)' == '' and Exists('$(MSBuildToolsPath)\..\..\..\msbuild\15.0\bin\MSBuild.dll')">$(MSBuildToolsPath)\..\..\..\msbuild\15.0\bin\</MSBuild_OSS_BinDir>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Runtime.Remoting" />
    <Reference Include="System.Xml" />
    <Reference Include="Microsoft.Build">
      <HintPath>$(MSBuild_OSS_BinDir)Microsoft.Build.dll</HintPath>
      <Private>False</Private>
    </Reference>
    <Reference Include="Microsoft.Build.Framework">
      <HintPath>$(MSBuild_OSS_BinDir)Microsoft.Build.Framework.dll</HintPath>
      <Private>False</Private>
    </Reference>
    <Reference Include="Microsoft.Build.Utilities.Core">
      <HintPath>$(MSBuild_OSS_BinDir)Microsoft.Build.Utilities.Core.dll</HintPath>
      <Private>False</Private>
    </Reference>
  </ItemGroup>
  <ItemGroup Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Release' ">
    <None Include="app.config">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <Link>MonoDevelop.MSBuildBuilder.exe.config</Link>
    </None>
  </ItemGroup>
  <ItemGroup Condition=" '$(Configuration)' == 'DebugWin32' OR '$(Configuration)' == 'ReleaseWin32' ">
    <None Include="app.windows.config">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <Link>MonoDevelop.MSBuildBuilder.exe.config</Link>
    </None>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="MonoDevelop.Projects.MSBuild\BuildEngine.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\LocalLogger.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\ProjectBuilder.cs" />
    <Compile Include="AssemblyInfo.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\MSBuildLoggerAdapter.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\Main.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\BuildEngine.Shared.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\LoggerAdapter.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\RemoteBuildEngineMessages.cs" />
    <Compile Include="..\MonoDevelop.Core\MonoDevelop.Core.Execution\BinaryMessage.cs">
      <Link>MonoDevelop.Core.Execution\BinaryMessage.cs</Link>
    </Compile>
    <Compile Include="MonoDevelop.Projects.MSBuild\ILogWriter.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\MSBuildEvaluatedItem.cs" />
    <Compile Include="..\MonoDevelop.Core\MonoDevelop.Projects.MSBuild\MSBuildEvent.cs">
      <Link>MonoDevelop.Core.Execution\MSBuildEvent.cs</Link>
    </Compile>
    <Compile Include="MonoDevelop.Projects.MSBuild\MSBuildResult.cs" />
    <Compile Include="MonoDevelop.Projects.MSBuild\MSBuildTargetResult.cs" />
    <Compile Include="..\MonoDevelop.Core\MonoDevelop.Core.Execution\RemoteProcessServer.cs">
      <Link>MonoDevelop.Core.Execution\RemoteProcessServer.cs</Link>
    </Compile>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
